﻿using ApplicationBase.Core.Context;
using MediatR;
using Microsoft.AspNetCore.Mvc;


namespace Infrastructure.Core.Web.Controller
{
    #pragma warning disable CS8618
    public class BaseController : ControllerBase
    {
        public IMediator Mediator { get; set; }
        public IServiceContext ServiceContext { get; set; }

        protected string EnumResultToString<T>(T enumResult) where T : Enum
        {
            return $"{typeof(T).Name}_{enumResult}";
        }
    }
}
